//
//  HYButton.h
//  HaiYue
//
//  Created by skyline on 2017/12/19.
//  Copyright © 2017年 skyline. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, HYButtonImagePosition)
{
    HYButtonImageDefaultPosition = 1,//默认排列方式，图片在左，文字在右
    HYButtonImageRightPosition,//图片在右，文字在左
    HYButtonImageUpPosition,//图片在上，文字在下
    HYButtonImageDownPosition,//图片在下，文字在上
};
@interface HYButton : UIButton
@property (nonatomic, assign) CCShapeLayerType type;
@property (nonatomic, assign) HYButtonImagePosition position;
@property (nonatomic, strong) UIColor *fillColor;
@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, strong) UIColor *touchColor;
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, copy) NSMutableAttributedString *attr;
- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title titleColor:(UIColor *)titleColor;
- (instancetype)initWithTitle:(NSString *)title backColor:(UIColor *)backColor;
- (instancetype)initWithTitle:(NSString *)title normalImageName:(NSString *)normalImageName selectImageName:(NSString *)selectImageName;
@end
